Skip to content

fix: ignore unmapped PerformanceIssue events#1852

Open
officialasishkumar wants to merge 1 commit intoChromeDevTools:mainfrom
officialasishkumar:fix/performance-issue-warning
Open

fix: ignore unmapped PerformanceIssue events#1852
officialasishkumar wants to merge 1 commit intoChromeDevTools:mainfrom
officialasishkumar:fix/performance-issue-warning

Conversation

@officialasishkumar
Copy link
Copy Markdown

Summary

  • ignore Audits PerformanceIssue events before passing them to the DevTools IssuesManager mapper, which currently has no handler for that issue code
  • preserve the existing mapper/logging path for other issue codes
  • add regression coverage that PerformanceIssue is ignored without collecting an issue or writing a console warning

Fixes #1850

Testing

  • npm run build
  • npm run test:no-build -- tests/PageCollector.test.ts
  • npm run check-format

@OrKoN OrKoN requested a review from Lightning00Blade April 13, 2026 07:31
Copy link
Copy Markdown
Collaborator

@Lightning00Blade Lightning00Blade left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR,

I think we can merge after the rebase and update to tests.
And remove the the hard coded bit after we update the version of devtools.

Comment thread src/PageCollector.ts
const inspectorIssue = data.issue;
// DevTools currently defines this protocol issue code but has no
// IssuesManager handler for it, so calling into the mapper only warns.
if (String(inspectorIssue.code) === 'PerformanceIssue') {
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note I have landed a change upstream in DevTools - https://crrev.com/c/7761323
to get the supported list so we don't have to hard code this bit.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Rebased onto latest main and updated the regression test for the current page issue event path. Kept the guard isolated until the DevTools bundle with the supported-list change is pulled in here.

Signed-off-by: Asish Kumar <officialasishkumar@gmail.com>
@officialasishkumar officialasishkumar force-pushed the fix/performance-issue-warning branch from 7bbfcee to 9808763 Compare April 16, 2026 14:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unhandled Audits PerformanceIssue spams stderr: 'No handler registered for issue code PerformanceIssue'

2 participants